﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace PanhuaWin.系统管理
{
    internal class Bus_PicklingOriginal
    {
        [Key]
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "WorkShopCode")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string WorkShopCode { get; set; }

        /// <summary>
        ///原卷号
        /// </summary>
        [Display(Name = "原卷号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string OriginalVolume { get; set; }

        /// <summary>
        ///原规格
        /// </summary>
        [Display(Name = "原规格")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string OriginalSize { get; set; }

        /// <summary>
        ///原厚度
        /// </summary>
        [Display(Name = "原厚度")]
        [DisplayFormat(DataFormatString = "18,3")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? OriginalThick { get; set; }

        /// <summary>
        ///原宽度
        /// </summary>
        [Display(Name = "原宽度")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? OriginalWidth { get; set; }

        /// <summary>
        ///原材质
        /// </summary>
        [Display(Name = "原材质")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string OriginalMaterial { get; set; }

        /// <summary>
        ///原重量
        /// </summary>
        [Display(Name = "原重量")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? OriginalWeight { get; set; }

        /// <summary>
        ///计划规格
        /// </summary>
        [Display(Name = "计划规格")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string PlanSize { get; set; }

        /// <summary>
        ///计划厚度
        /// </summary>
        [Display(Name = "计划厚度")]
        [DisplayFormat(DataFormatString = "18,3")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? PlanThick { get; set; }

        /// <summary>
        ///计划材质
        /// </summary>
        [Display(Name = "计划材质")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? PlanMaterial { get; set; }

        /// <summary>
        ///计划重量
        /// </summary>
        [Display(Name = "计划重量")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? PlanWeight { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateID")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Creator")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Creator { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CreateDate")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyID")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Modifier")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        public string Modifier { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "ModifyDate")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        [Display(Name = "酸洗产出卷")]
        [ForeignKey("guid")]
        public List<Bus_PicklingOutput> Bus_PicklingOutput { get; set; }
        /// <summary>
        ///产地
        /// </summary>
        [Display(Name = "产地")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string OriginalAddress { get; set; }
    }
}
